package com.it.travel.controller;

import com.it.travel.common.RequiredPermission;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/test")
@CrossOrigin
public class TestController {
    @RequiredPermission("sys:user:delete")
    @GetMapping("")
    public String test(HttpServletRequest request) {

        return "test";
    }

    @GetMapping("/login")
    public String test1() {

        return "test";
    }

}
